import { Module } from '@nestjs/common';
import { AppGatherController } from './gather.controller';
import { AppGatherService } from './gather.service';
import { HttpModule } from '@nestjs/axios';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Gather } from './gather.entity';
import { Article } from '../article/article.entity';
import { Collection } from '../collection/collection.entity';
import { History } from '../history/history.entity';
@Module({
  imports: [
    TypeOrmModule.forFeature([Gather]),
    TypeOrmModule.forFeature([Article]),
    TypeOrmModule.forFeature([Collection]),
    TypeOrmModule.forFeature([History]),
    HttpModule.register({
      timeout: 60000,
      maxRedirects: 5,
    }),
  ],
  controllers: [AppGatherController],
  providers: [AppGatherService],
  exports: [AppGatherService],
})
export default class AppGatherModule {}
